﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JCodeGen
{
    public class GridViewGenerator : CodeGenBase
    {
        private string ID;
        private string DataSourceID;
        private string DataKeyNames = "\"CustomerID\"";
        private string PageSize;

        public GridViewGenerator(
            string ID,
            string DataSourceID,
            string PageSize)
        {
            this.ID = ID;
            this.DataSourceID = DataSourceID;
            this.PageSize = PageSize;
        }

        protected override void SetReplacement()
        {
            AddReplacement("ID", ID);
            AddReplacement("DataSourceID", DataSourceID);
            AddReplacement("DataKeyNames", DataKeyNames);
            AddReplacement("PageSize", PageSize);
        }

        
    } // end of GridViewGenerator
}
